// 全局车辆控制相关变量

class Globle {
  private angle: number = 0;
  private accelerator: number = 0;
  private brake: number = 0;

  public setAngle(angle: number) {
    this.angle = angle;
  }
  public getAngle(): number {
    return this.angle;
  }

  public setAccelerator(acc: number) {
    this.accelerator = acc;
  }
  public getAccelerator(): number {
    return this.accelerator;
  }

  public setBrake(brake: number) {
    this.brake = brake;
  }
  public getBrake(): number {
    return this.brake;
  }
}

const globleInstance = new Globle();
export default globleInstance;